package com.sunyard.dal.bo.operator;

import com.sunyard.dal.bo.BaseBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author jiy.fang
 * @Description description
 * @date 2019/7/11
 */

@Data
@ApiModel
public class OperatorLoginBO extends BaseBO {

    private static final long serialVersionUID = 6071466723418462568L;

    /**
     * 用户名 不超过32位
     */
    @ApiModelProperty(value = "用户名 不超过32位")
    @NotBlank(message = "用户名不能为空")
    @Size(max = 32, message = "用户名不超过32位")
    private String opName;

    /**
     * 用户密码 6-15位数字、字母的混合体
     */
    @ApiModelProperty(value = "用户密码 6-15位数字、字母的混合体")
    @NotBlank(message = "用户密码不能为空")
    private String opPwd;

}
